package $${Obj.PackageName}$$.dao;

import java.util.List;
import java.util.Map;
import com.inspur.system.repository.mybatis.MyBatisRepository;
import org.apache.ibatis.session.RowBounds;
import $${Obj.PackageName}$$.model.$${Obj.ClassNameFirstUpper}$$;


@MyBatisRepository
public interface $${Obj.ClassNameFirstUpper}$$Dao {
	##{SQL
  $$<(ObjSql.SqlType=select)
	public $${Obj.ClassNameFirstUpper}$$ findOne(long id);

	public List<$${Obj.ClassNameFirstUpper}$$> findAll();
	
	public List<$${Obj.ClassNameFirstUpper}$$> findAll(RowBounds rowBounds);

	public List<$${Obj.ClassNameFirstUpper}$$> findPage(Map<String, String> parameters);
	
	public List<$${Obj.ClassNameFirstUpper}$$> findPage(Map<String, String> parameters, RowBounds rowBounds);
	
	public int getCount(Map<String, String> parameters);
  >$$
  $$<(ObjSql.SqlType=insert)
	public void create($${Obj.ClassNameFirstUpper}$$ $${Obj.ClassNameFirstLower}$$);
	>$$
	$$<(ObjSql.SqlType=update)
	public void update($${Obj.ClassNameFirstUpper}$$ $${Obj.ClassNameFirstLower}$$);
	>$$
  $$<(ObjSql.SqlType=delete)
	public void delete(long id);
	>$$
	}##
}
